package com.atguigu.servicebase.handler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Auther: fangshicai
 * @Date: 2022/1/18 15:13
 * @Description: 自定义异常:需要继承RuntimeException
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyException extends RuntimeException{

    private Integer code;
    private String msg;
}
